package god530.com.simpleapp_slide.database.bean;

import android.text.TextUtils;

/**
 * Created by Administrator on 2016/12/22.
 */

public class DetailBean {

    private int id;
    private String types; // 收入/支出
    private String subs; // 衣食住行娱
    private String money; // 钱数
    private String time;

    public DetailBean() {
    }

    public DetailBean(String time, String money, String subs, String types) {
        this.time = time;
        this.money = money;
        this.subs = subs;
        this.types = types;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTypes() {
        return TextUtils.isEmpty(types) ? "" : types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getSubs() {
        return TextUtils.isEmpty(subs) ? "" : subs;
    }

    public void setSubs(String subs) {
        this.subs = subs;
    }

    public String getMoney() {
        return TextUtils.isEmpty(money) ? "" : money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getTime() {
        return TextUtils.isEmpty(time) ? "" : time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "DetailBean{" +
                "types='" + types + '\'' +
                ", subs='" + subs + '\'' +
                ", money='" + money + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
